package org.wu.spring.orm.integration.compare.infrastructure.mapper.eloquent;

import gaarason.database.contract.connection.GaarasonDataSource;
import gaarason.database.query.MySqlBuilder;
import jakarta.annotation.Resource;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Repository;
import org.wu.spring.orm.integration.compare.infrastructure.entity.SysUserDO;

import gaarason.database.eloquent.Model;

@Repository
public  class EloquentMapper extends  Model<MySqlBuilder<SysUserDO, Long>, SysUserDO, Long> {


    @Lazy
    @Resource
    protected GaarasonDataSource gaarasonDataSource;

    @Override
    public GaarasonDataSource getGaarasonDataSource() {
        return gaarasonDataSource;
    }
}

